/**
 * Created by xiangjiayu on 2017/5/27.
 */
//省市区级联
import React from 'react';
import { Cascader } from 'antd';

export default class AddressSelect extends React.Component {
    constructor(props) {
        super(props)
    }
    state = {
        size: 'large',
    };
    render(){
        const { size } = this.state;
        const defalutvalue = []
        // defalutvalue.push(this.props.defaultValue.province)
        // defalutvalue.push(this.props.defaultValue.city)

        const options = [{
            key:1,
            value: '江苏',
            label: '江苏',
            children: [{
                value: '南京',
                label: '南京市',
                children: [{
                    value: '雨花台区',
                    label: '雨花台区',
                }],
            }],
        }, {
            key:2,
            value: '浙江',
            label: '浙江',
            children: [{
                value: '杭州',
                label: '杭州',
                children: [{
                    value: '西湖',
                    label: '西湖',
                }],
            }],
        }];
        return(
            <Cascader defaultValue={defalutvalue} options={options} size={size} placeholder="请输入地区" expandTrigger="hover" />
        );
    }
}




